﻿
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sproc_ReadBBSForumItemReplay]') AND type in (N'P', N'PC'))
    DROP PROCEDURE [dbo].[sproc_ReadBBSForumItemReplay];
GO
CREATE PROCEDURE [dbo].[sproc_ReadBBSForumItemReplay]
    @item_id int
/*

============================================================
功能:    读取帖子回复
参数:
    @item_id int        :    帖子ID
============================================================

*/
AS
SELECT * 
    FROM uds_bbs_replay
    WHERE item_id = @item_id
    ORDER BY replay_time